package top.hjcwzx.wrench.mqtt.service.publish;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationEventPublisher;

/**
 *
 * <p><b>类名：</b> MqttEventPublisher</p>
 * <p><b>描述：</b> mqtt事件发布器</p>
 * <p><b>创建时间：</b> 2025-06-17 17:01</p>
 *
 * @author 胡锦程
 */
public class MqttEventPublisher {

    private final ApplicationEventPublisher publisher;

    public MqttEventPublisher(ApplicationEventPublisher publisher) {
        this.publisher = publisher;
    }

    public void publish(ApplicationEvent event) {
        publisher.publishEvent(event);
    }
}
